package com.itheima.api;

import com.itheima.domain.Student;

import java.util.Objects;

/*
isNUll
nonNull
 */
public class Demo06 {

    public static void main(String[] args) {
        Student stu=null;
        System.out.println(Objects.isNull(stu));
        System.out.println(Objects.nonNull(stu));//判断是否非空  非空 true  空 false

        System.out.println(stu==null);
        System.out.println(stu!=null);


    }
}
